package com.huawei.classroom.student.h06;

public class Soldier extends Base{
	private static int livingSoldierCount;
	private static int deadSoldierCount;
	
	public Soldier(int h,int a,double ar,int x,int y) {
		super(h,a,ar,x,y);
		setLivingSoldier();
	}
	public static int getLivingSoldierCount() {
		return livingSoldierCount;
	}
	public static int getDeadedSoldierCount() {
		return deadSoldierCount;
	}
	public static void setLivingSoldier() {
		livingSoldierCount++;
	}
	public static void setDeadSoldier() {
		livingSoldierCount--;
		deadSoldierCount++;
	}
	
}